package cn.smxy.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("feedback")
public class Feedback implements Serializable {
    private static final long serialVersionUID = 6478403848472239465L;

    @TableId(type = IdType.ASSIGN_ID,value = "feedback_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long feedbackId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    private String userName;

    private String feedbackContent;

    private Long createTime;
}
